/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.coupon.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * c端奖励记录表
 *
 * @author proj code generator
 * @date 2021-08-12 14:10:39
 */
@Data
@TableName("fx_reward_person")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "c端奖励记录表")
public class FxRewardPerson extends Model<FxRewardPerson> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;

    @ApiModelProperty(value="订单编号")
    private String orderNumber;

    /**
     * 公司id
     */
    @ApiModelProperty(value="公司id")
    private Long companyId;
    /**
     * 奖励的品牌id
     */
    @ApiModelProperty(value="奖励的品牌id")
    private Long brandId;
    @ApiModelProperty(value="分享id")
    private Long shareId;
    @ApiModelProperty(value="分享唯一id")
    private Long singleId;
    @ApiModelProperty(value="浏览id")
    private Long browseId;
	@ApiModelProperty(value = "品牌配置表ID")
	private Long confBrandPersonId;
    /**
     * 奖励类型
     */
    @ApiModelProperty(value="奖励类型")
    private Integer type;

    @ApiModelProperty(value="商品类型：1 优惠卷 2 卡")
    private Integer shopType;

    @ApiModelProperty(value="0已领取1佣金待发放2佣金已发放")
    private Integer status;
    /**
     * 金额
     */
    @ApiModelProperty(value="金额")
    private BigDecimal money;
    /**
     * 核销金额（冗余字段type=2）
     */
    @ApiModelProperty(value="核销金额（冗余字段type=2）")
    private BigDecimal useMoney;
    /**
     * 目标ID（根据shop_type类型 连表查询）
     */
    @ApiModelProperty(value="目标ID（根据shop_type类型 连表查询）")
    private Long tatId;
    /**
     * 分享人的ID
     */
    @ApiModelProperty(value="用户ID")
    private Long personId;
    @ApiModelProperty(value="饭友id")
    private Long fyId;
    @ApiModelProperty(value="返佣时间")
    private LocalDateTime passTime;

    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;
    /**
     * 0可用1删除
     */
	@TableLogic
    @ApiModelProperty(value="0可用1删除")
    private Integer delFlag;
    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID",hidden=true)
    private Integer tenantId;
    }
